** Ran with Stata/MP 15.1 for Mac (64-bit Intel)
** ssc install reghdfe (version 6.12.2 02Nov2021)
** ssc install ftools (version 2.48.0 29mar2021)

** CCES **

** load data
use "cces_panel.dta"

** Table 1
reghdfe voted contact [pweight=weight], a(id state#year) vce(cl id)
reghdfe early contact [pweight=weight], a(id state#year) vce(cl id)
reghdfe mail contact [pweight=weight], a(id state#year) vce(cl id)
reghdfe eday contact [pweight=weight], a(id state#year) vce(cl id)

** Table A2
reghdfe voted contact_lead [pweight=weight], a(id state#year) vce(cl id)
reghdfe early contact_lead [pweight=weight], a(id state#year) vce(cl id)
reghdfe mail contact_lead [pweight=weight], a(id state#year) vce(cl id)
reghdfe eday contact_lead [pweight=weight], a(id state#year) vce(cl id)

** Table A3
reghdfe voted contact educ inc missing_inc married dem pid_strength /// 
extreme interest [pweight=weight], a(id state#year) vce(cl id)
reghdfe early contact educ inc missing_inc married dem pid_strength /// 
extreme interest [pweight=weight], a(id state#year) vce(cl id)
reghdfe mail contact educ inc missing_inc married dem pid_strength /// 
extreme interest [pweight=weight], a(id state#year) vce(cl id)
reghdfe eday contact educ inc missing_inc married dem pid_strength /// 
extreme interest [pweight=weight], a(id state#year) vce(cl id)

clear

